import { createRouter, createWebHashHistory } from "vue-router"
import Home from '../../views/Home.vue'
import About from '../../views/About.vue'
import User from '../../components/class6/User.vue'

const routes = [
    {
        path: '/',
        name: 'Home',
        component: Home
    },
    {
        path: '/about',
        name: 'About',
        component: About
    },
    {
        path: '/user/:userId',
        name: 'User',
        component: User
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes

})

export default router